<template>
    <p>这是父组件</p>
    <p>以下是子组件的内容</p>
    <Son v-slot="slotProps">
    <p>这是父组件接收到的值--{{ slotProps.sonName }}</p>
    </Son>

    
</template>

<script>
import Son from"./Son.vue"
export default{
    components:{
        Son
    }
}

let obj = {
    a:1,
    b:2
}
let aValue = obj.a
let {a:aName,b} = obj
console.log(a);
console.log(aName);
b
</script>